home *** CD-ROM | disk | FTP | other *** search
/ Power Hacker 2003 / Power_Hacker_2003.iso / Exploit and vulnerability / w00w00 / sectools / SRS / server / scripts / test-srs.sh < prev   
Encoding:
Linux/UNIX/POSIX Shell Script  |  2000-01-12  |  201 b   |  11 lines

  1. #!/bin/sh
  2.  
  3. output=`ps -auxw | grep "server" | grep -v "grep"`
  4.  
  5. if [ -z "$output" ]
  6. then
  7.   echo "Had to restart SRS at `date`" | mail -s "SRS restart" SRS@repsec.com &
  8.   /root/SRS/server/src/server
  9. fi
  10.  
  11.